package ru.sh.ui;

import javax.microedition.khronos.opengles.GL10;

import android.view.MotionEvent;
import framework.GameScreen;
import framework.objects.ui.UI;

public class MenuUI extends UI {

	private PlayBtn playBtn;
	private HighscoreBtn highscoreBtn;
	private HelpBtn helpBtn;
	private ExitBtn exitBtn;
	private SoundBtn soundBtn;
	
	public MenuUI(GameScreen screen) {
		super(screen);
		playBtn = new PlayBtn(screen, this, 400, 400);
		highscoreBtn = new HighscoreBtn(screen, this, 400, 300);
		helpBtn = new HelpBtn(screen, this, 400, 200);
		exitBtn = new ExitBtn(screen, this, 100, 100);
		soundBtn = new SoundBtn(screen, this, 800, 100);
	}

	@Override
	public void handle(MotionEvent event) {
		playBtn.handle(event);
		highscoreBtn.handle(event);
		helpBtn.handle(event);
		exitBtn.handle(event);
		soundBtn.handle(event);
	}

	@Override
	protected void initPresentation() {
		// TODO Auto-generated method stub

	}

	@Override
	public void draw(GL10 gl, float deltaTime) {
		playBtn.draw(gl, deltaTime);
		highscoreBtn.draw(gl, deltaTime);
		helpBtn.draw(gl, deltaTime);
		exitBtn.draw(gl, deltaTime);
		soundBtn.draw(gl, deltaTime);
	}

}
